Skip to main content

minWidth

Type

property

Summary

Specifies how narrow a stack window can be made when it's resized.

Syntax

set the minWidth of <stack> to <pixels>

Description

Use the minWidth property if you want the user to be able to resize the stack window, but no smaller than a width you choose. For example, you might want to let the user make the stack smaller, but not so small that the stack's navigation buttons can't be displayed.

The minWidth is the minimum width in pixels. The height does not include the window's title bar or borders.

The minWidth property does not prevent a handler from changing the stack's width property (or related properties such as the rectangle). It affects only user actions. If you set the stack's width to a value less than the minWidth, it is reset to the minWidth when you close and reopen the stack.

If the stack's resizable property is false, the setting of this property has no effect.

note

The current architecture uses 16-bit signed integers for all co-ordinates, which means that the value range is -32768 to 32767.

Examples

set the minWidth of this stack to 200

glossary: property, title bar, handler, stack window

keyword: rectangle, integer

object: stack, button

property: minHeight, pixels, properties, width, maxWidth

command: reset

function: value, stacks

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?